package com.lin.java.tool.send.sms.strategy.local;

import cn.hutool.json.JSONUtil;
import com.lin.java.tool.send.model.Sms;
import com.lin.java.tool.send.model.dto.SmsDTO;
import com.lin.java.tool.send.sms.SmsStrategy;
import lombok.extern.slf4j.Slf4j;

/**
 * @author linjiang
 * @date 2024/8/19
 * @fn
 */
@Slf4j
public class ControlSmsStrategy extends SmsStrategy {

    public ControlSmsStrategy(Sms sms) {
        this.sms = sms;
    }


    @Override
    protected Boolean sendSms(SmsDTO smsDTO) {
        log.info("发送短信成功：{}", JSONUtil.toJsonStr(smsDTO));
        return true;
    }
}
